﻿using System.Web.Mvc;
using FrameWork.Common;
using FrameWork.Entity.ViewModel.Account;
using FrameWork.Web;

namespace Admin.Web.Areas.Account.Controllers
{
    public class AccountController : AdminControllerBase
    {
        /// <summary>
        /// 登录页面
        /// </summary>
        public ActionResult Login()
        {
            return View();
        }

        /// <summary>
        /// 登录
        /// </summary>
        [HttpPost]
        public ActionResult Login(LoginRequest req)
        {
            var data = new
            {
                state= "success",
                message="登录成功"
            };
            return Content(data.ToJson());
        }

        /// <summary>
        /// 首页跳转
        /// </summary>
        public ActionResult Index()
        {
            return View();
        }
    }
}